<?php

class Gallery_Backend_Categories_Delete extends Backend_Component_Delete 
{
    
    /**
     * Delete record.
     *
     * @return  boolean
     */
    protected function _delete() 
    {
        $id = (int)Application::getRequest()->get('id');
        $params = array
        (
            'table' => 'photo_categories', 
            'parent' => Gallery_Backend_Utils::parent($id), 
        );
        
        return Kernel::factory('Kernel_Form', 'Order', $params)
            ->deleteNode($id);
    }
    
}